<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.1.0.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#updateForm").submit(function(){
			if($(":password[name=password]").val()==""){
				alert("비밀번호를 입력하세요!");
				return false;
			} else if($(":text[name=name]").val()==""){
				alert("이름을 입력하세요!");
				return false;
			} else if($(":text[name=address]").val()==""){
				alert("주소를 입력하세요!");
				return false;
			}
		})
		$("#deleteForm").submit(function(){
			
		})
	})
</script>

<body>
<form action="updateconsumer.do" method="post" id="updateForm">
ID :  <input type="text" name="id" value="${sessionScope.cvo.id }" readonly=readonly><br>
PASSWORD : <input type="password" name="password" ><br>
NAME : <input type="text" name="name" value="${sessionScope.cvo.name }"><br>
ADDRESS : <input type="text" name="address" value="${sessionScope.cvo.address }"><br>
<input type="submit" value="정보수정">
</form>
<form action="deleteconsumer.do" method="post" id="deleteForm">
<input type="submit" value="회원탈퇴">
</form>
</body>